package com.system.service;

import com.system.entity.Teacher;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.CrossOrigin;

import java.util.List;
import java.util.Map;
@CrossOrigin
@Service
public interface teacherService {
    public Teacher findByTeacherId(Long id);
    public Teacher findByUserName(String tea_name);
    public int add(Teacher teacher);
    public int edit(Teacher teacher);
    public int delete(Long tid);
    public List<Teacher> findList(Map<String,Object> queryMap);
    public List<Teacher> findAll();
    public int getTotal(Map<String,Object> queryMap);
}
